package com.sinochem.yunlian.ship.common.enums;

import lombok.Getter;

/**
 * 信用支付，保险服务，金链融资
 **/
public enum FinanceServiceType {
    CREDIT_PAY(1 , "信用支付"),
    INSURANT_SERVICE(2 , "保险服务"),
    LOAN_SERVICE(3 , "金链融资");

    @Getter
    private int code;
    @Getter
    private String name;

     FinanceServiceType(int code, String name){
         this.code = code;
         this.name = name;
    }
    public static String getValueName(Integer code) {
        for (FinanceServiceType dataSource : values()) {
            if (dataSource.getCode()==code) {
                return dataSource.getName();
            }
        }
        return null;
    }

}
